package com.ccys.cms.service.userManagement;

import com.ccys.common.vo.ResponseResult;
import com.ccys.db.dto.userManagement.FavouritePrescriptionDetailDto;
import com.ccys.db.dto.userManagement.FavouritePrescriptionDto;
import com.ccys.db.entity.TblFavouritePrescription;
import com.ccys.db.rely.service.BaseService;
import com.ccys.db.vo.userManagement.FavouritePrescriptionDetailPageQueryVo;
import com.ccys.db.vo.userManagement.FavouritePrescriptionPageQueryVo;
import com.github.pagehelper.PageInfo;

import java.text.ParseException;

/**
 * @program: WhiteCoat
 * @description: 处方管理接口
 * @author: ZhangJingCan
 * @create: 2023-12-22 09:44
 **/
public interface FavouritePrescriptionService extends BaseService<TblFavouritePrescription> {
    ResponseResult saveFavouritePrescription(FavouritePrescriptionDto dto);

    ResponseResult deleteFavouritePrescription(FavouritePrescriptionDto dto);

    ResponseResult updateFavouritePrescriptionStatus(FavouritePrescriptionDto dto);

    ResponseResult<PageInfo<FavouritePrescriptionPageQueryVo>, Object> findPageFavouritePrescription(FavouritePrescriptionDto dto);

    ResponseResult saveFavouritePrescriptionDetail(FavouritePrescriptionDetailDto dto) throws ParseException;

    ResponseResult deleteFavouritePrescriptionDetail(FavouritePrescriptionDetailDto dto);

    ResponseResult<PageInfo<FavouritePrescriptionDetailPageQueryVo>, Object> findPageFavouritePrescriptionDetail(FavouritePrescriptionDetailDto dto);
}
